<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>火电机组冷端优化系统 - 背压优化</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary-bg: #0f172a;
            --secondary-bg: #1e293b;
            --card-bg: #1a2435;
            --accent: #5eead4;
            --accent-hover: #88f3e2;
            --text-primary: #e2e8f0;
            --text-secondary: #94a3b8;
            --text-tertiary: #64748b;
            --border-color: #334155;
            --success: #4ade80;
            --warning: #fbbf24;
            --error: #f87171;
            --power-color: #f97316;
            --load-color: #38bdf8;
            --pressure-color: #8b5cf6;
            --temp-color: #f43f5e;
            --font-main: 'Segoe UI', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
            --spacing-sm: 8px;
            --spacing-md: 16px;
            --spacing-lg: 24px;
            --spacing-xl: 32px;
            --radius-sm: 4px;
            --radius-md: 8px;
            --radius-lg: 12px;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            background: var(--primary-bg);
            color: var(--text-primary);
            font-family: var(--font-main);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            overflow: auto; /* 修复滚动问题 */
        }
        
        /* 导航栏 */
        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: var(--spacing-md) var(--spacing-xl);
            background: var(--secondary-bg);
            border-bottom: 1px solid var(--border-color);
            height: 60px;
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .logo-area {
            display: flex;
            align-items: center;
            gap: var(--spacing-md);
        }
        
        .logo-icon {
            width: 36px;
            height: 36px;
            background: var(--accent);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-bg);
        }
        
        .logo-text {
            font-size: 1.2rem;
            font-weight: 600;
        }
        
        .nav-menu {
            display: flex;
            list-style: none;
            gap: var(--spacing-xl);
        }
        
        .nav-item {
            position: relative;
        }
        
        .nav-link {
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: var(--spacing-sm);
            padding: var(--spacing-sm) var(--spacing-md);
            border-radius: var(--radius-sm);
            transition: all 0.3s ease;
        }
        
        .nav-link:hover, .nav-link.active {
            color: var(--accent);
            background: rgba(94, 234, 212, 0.1);
        }
        
        .user-area {
            display: flex;
            align-items: center;
            gap: var(--spacing-md);
        }
        
        .user-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: linear-gradient(45deg, var(--accent), #4a7bff);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
        }
        
        /* 内容区域 */
        .content-area {
            flex: 1;
            padding: var(--spacing-xl);
            overflow: auto;
            display: flex;
            flex-direction: column;
            gap: var(--spacing-xl);
        }
        
        /* 机组选择 */
        .unit-selector {
            background: var(--card-bg);
            border-radius: var(--radius-md);
            padding: var(--spacing-lg);
            border: 1px solid var(--border-color);
        }
        
        .selector-header {
            display: flex;
            align-items: center;
            gap: var(--spacing-md);
            margin-bottom: var(--spacing-lg);
        }
        
        .selector-title {
            font-size: 1.1rem;
            color: var(--accent);
        }
        
        .selector-group {
            display: flex;
            gap: var(--spacing-xl);
        }
        
        .selector-item {
            flex: 1;
        }
        
        .selector-label {
            display: block;
            margin-bottom: var(--spacing-sm);
            color: var(--text-secondary);
        }
        
        .selector-select {
            width: 100%;
            padding: var(--spacing-sm) var(--spacing-md);
            background: rgba(26, 36, 53, 0.7);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            color: var(--text-primary);
            font-family: var(--font-main);
        }
        
        /* 卡片样式 */
        .card {
            background: var(--card-bg);
            border-radius: var(--radius-md);
            padding: var(--spacing-lg);
            border: 1px solid var(--border-color);
        }
        
        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: var(--spacing-lg);
            padding-bottom: var(--spacing-md);
            border-bottom: 1px solid var(--border-color);
        }
        
        .card-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--accent);
            display: flex;
            align-items: center;
            gap: var(--spacing-sm);
        }
        
        .card-action {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(94, 234, 212, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
        
        /* 运行概览 */
        .overview-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: var(--spacing-md);
        }
        
        .metric-item {
            background: rgba(26, 36, 53, 0.5);
            border-radius: var(--radius-sm);
            padding: var(--spacing-md);
            border: 1px solid var(--border-color);
            text-align: center;
        }
        
        .metric-label {
            font-size: 0.9rem;
            color: var(--text-secondary);
            margin-bottom: var(--spacing-sm);
        }
        
        .metric-value {
            font-size: 1.4rem;
            font-weight: 600;
        }
        
        .metric-unit {
            font-size: 0.9rem;
            color: var(--text-tertiary);
            margin-left: var(--spacing-sm);
        }
        
        /* 数据分析 */
        .analysis-section {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: var(--spacing-xl);
        }
        
        .analysis-card {
            height: 300px;
            background: rgba(26, 36, 53, 0.3);
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            gap: var(--spacing-md);
            color: var(--text-tertiary);
        }
        
        .analysis-title {
            font-size: 1.1rem;
            color: var(--text-secondary);
        }
        
        /* 优化结果 */
        .optimization-result {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: var(--spacing-lg);
        }
        
        .result-item {
            background: rgba(26, 36, 53, 0.5);
            border-radius: var(--radius-sm);
            padding: var(--spacing-lg);
            border: 1px solid var(--border-color);
        }
        
        .result-title {
            font-size: 1rem;
            color: var(--text-secondary);
            margin-bottom: var(--spacing-md);
            text-align: center;
        }
        
        .result-value {
            font-size: 1.8rem;
            font-weight: 700;
            text-align: center;
            margin-bottom: var(--spacing-md);
        }
        
        .result-comparison {
            display: flex;
            justify-content: space-between;
        }
        
        .comparison-item {
            text-align: center;
        }
        
        .comparison-label {
            font-size: 0.9rem;
            color: var(--text-secondary);
            margin-bottom: var(--spacing-sm);
        }
        
        .comparison-value {
            font-size: 1.4rem;
            font-weight: 600;
        }
        
        .current-value {
            color: var(--warning);
        }
        
        .optimal-value {
            color: var(--success);
        }
        
        /* 风机运行方式 */
        .fan-operation {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: var(--spacing-xl);
        }
        
        .operation-header {
            display: flex;
            align-items: center;
            gap: var(--spacing-md);
            margin-bottom: var(--spacing-lg);
        }
        
        .operation-title {
            font-size: 1.1rem;
            color: var(--accent);
        }
        
        .fans-container {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: var(--spacing-lg);
        }
        
        .fan-item {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .fan-circle {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: var(--spacing-sm);
            font-weight: 600;
        }
        
        .fan-normal {
            background: rgba(94, 234, 212, 0.1);
            border: 2px solid var(--success);
            color: var(--success);
        }
        
        .fan-abnormal {
            background: rgba(248, 113, 113, 0.1);
            border: 2px solid var(--error);
            color: var(--error);
        }
        
        .fan-label {
            font-size: 0.9rem;
            color: var(--text-secondary);
        }
        
        .fan-speed {
            font-size: 0.9rem;
            font-weight: 600;
            margin-top: var(--spacing-sm);
        }
        
        /* 参数表格 */
        .parameter-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: var(--spacing-lg);
        }
        
        .parameter-table th {
            text-align: left;
            padding: var(--spacing-md);
            background: rgba(26, 36, 53, 0.5);
            color: var(--text-secondary);
            font-weight: 500;
            border-bottom: 1px solid var(--border-color);
        }
        
        .parameter-table td {
            padding: var(--spacing-md);
            border-bottom: 1px solid var(--border-color);
        }
        
        .parameter-table tr:last-child td {
            border-bottom: none;
        }
        
        .parameter-table tr:hover {
            background: rgba(94, 234, 212, 0.05);
        }
        
        /* 响应式调整 */
        @media (max-width: 1200px) {
            .analysis-section {
                grid-template-columns: 1fr;
            }
            
            .fan-operation {
                grid-template-columns: 1fr;
            }
        }
        
        @media (max-width: 768px) {
            .nav-menu {
                display: none;
            }
            
            .selector-group {
                flex-direction: column;
                gap: var(--spacing-md);
            }
            
            .fans-container {
                grid-template-columns: repeat(2, 1fr);
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar">
        <div class="logo-area">
            <div class="logo-icon">
                <i class="fas fa-bolt"></i>
            </div>
            <div class="logo-text">冷端优化系统</div>
        </div>
        
        <ul class="nav-menu">
            <li class="nav-item">
                <a href="#" class="nav-link">
                    <i class="fas fa-tachometer-alt"></i> 驾驶舱
                </a>
            </li>
            <li class="nav-item">
                <a href="#" class="nav-link active">
                    <i class="fas fa-cogs"></i> 背压优化
                </a>
            </li>
            <li class="nav-item">
                <a href="#" class="nav-link">
                    <i class="fas fa-brain"></i> AI分析
                </a>
            </li>
            <li class="nav-item">
                <a href="#" class="nav-link">
                    <i class="fas fa-chart-bar"></i> 报表
                </a>
            </li>
        </ul>
        
        <div class="user-area">
            <div class="user-avatar">
                <i class="fas fa-user"></i>
            </div>
        </div>
    </nav>
    
    <!-- 内容区域 -->
    <div class="content-area">
        <!-- 机组选择 -->
        <div class="unit-selector">
            <div class="selector-header">
                <i class="fas fa-industry"></i>
                <h2 class="selector-title">选择目标机组</h2>
            </div>
            
            <div class="selector-group">
                <div class="selector-item">
                    <label class="selector-label">电厂</label>
                    <select class="selector-select">
                        <option selected>华光电厂</option>
                        <option>华东电厂</option>
                        <option>华南电厂</option>
                        <option>西北电厂</option>
                    </select>
                </div>
                
                <div class="selector-item">
                    <label class="selector-label">机组</label>
                    <select class="selector-select">
                        <option>#1机组</option>
                        <option>#2机组</option>
                        <option selected>#3机组</option>
                        <option>#4机组</option>
                    </select>
                </div>
            </div>
        </div>
        
        <!-- 运行概览 -->
        <div class="card">
            <div class="card-header">
                <h2 class="card-title">
                    <i class="fas fa-tachometer-alt"></i> 运行概览
                </h2>
                <div class="card-action">
                    <i class="fas fa-expand"></i>
                </div>
            </div>
            
            <div class="overview-grid">
                <div class="metric-item">
                    <div class="metric-label">机组负荷</div>
                    <div class="metric-value">635<span class="metric-unit">MW</span></div>
                </div>
                
                <div class="metric-item">
                    <div class="metric-label">主汽流量</div>
                    <div class="metric-value">2150<span class="metric-unit">t/h</span></div>
                </div>
                
                <div class="metric-item">
                    <div class="metric-label">主汽温度</div>
                    <div class="metric-value">541<span class="metric-unit">°C</span></div>
                </div>
                
                <div class="metric-item">
                    <div class="metric-label">主汽压力</div>
                    <div class="metric-value">24.5<span class="metric-unit">MPa</span></div>
                </div>
                
                <div class="metric-item">
                    <div class="metric-label">给水流量</div>
                    <div class="metric-value">1980<span class="metric-unit">t/h</span></div>
                </div>
                
                <div class="metric-item">
                    <div class="metric-label">再热温度</div>
                    <div class="metric-value">566<span class="metric-unit">°C</span></div>
                </div>
                
                <div class="metric-item">
                    <div class="metric-label">排汽流量</div>
                    <div class="metric-value">1250<span class="metric-unit">t/h</span></div>
                </div>
                
                <div class="metric-item">
                    <div class="metric-label">凝结水温度</div>
                    <div class="metric-value">38.5<span class="metric-unit">°C</span></div>
                </div>
                
                <div class="metric-item">
                    <div class="metric-label">风机开启台数</div>
                    <div class="metric-value">6<span class="metric-unit">台</span></div>
                </div>
                
                <div class="metric-item">
                    <div class="metric-label">风机平均转速</div>
                    <div class="metric-value">42.3<span class="metric-unit">Hz</span></div>
                </div>
                
                <div class="metric-item">
                    <div class="metric-label">风机总功耗</div>
                    <极速赛车开奖官网
                    <div class="metric-value">85.7<span class="metric-unit">MW</span></div>
                </div>
                
                <div class="metric-item">
                    <div class="metric-label">环境温度</div>
                    <div class="metric-value">24.8<span class="metric-unit">°C</span></div>
                </div>
                
                <div class="metric-item">
                    <div class="metric-label">环境风速</div>
                    <div class="metric-value">2.5<span class="metric-unit">m/s</span></div>
                </div>
                
                <div class="metric-item">
                    <div class="metric-label">环境风向</div>
                    <div class="metric-value">东南</div>
                </div>
            </div>
        </div>
        
        <!-- 数据分析 -->
        <div class="analysis-section">
            <div class="card">
                <div class="card-header">
                    <h2 class="card-title">
                        <i class="fas fa-database"></i> 大数据分析
                    </h2>
                    <div class="card-action">
                        <i class="fas fa-expand"></i>
                    </div>
                </div>
                
                <div class="analysis-card">
                    <i class="fas fa-chart-pie fa-3x"></i>
                    <div class="analysis-title">历史运行数据聚类结果</div>
                </div>
            </div>
            
            <div class="card">
                <div class="card-header">
                    <h2 class="card-title">
                        <i class="fas fa-cube"></i> 数字孪生实时计算
                    </h2>
                    <div class="card-action">
                        <i class="fas fa-expand"></i>
                    </div>
                </div>
                
                <div class="analysis-card">
                    <i class="fas fa-chart-line fa-3x"></i>
                    <div class="analysis-title">最优背压-背压基准区间-实际背压对比</div>
                </div>
            </div>
        </div>
        
        <!-- 智能优化结果 -->
        <div class="card">
            <div class="card-header">
                <h2 class="card-title">
                    <i class="fas fa-brain"></i> 智能优化结果
                </h2>
                <div class="card-action">
                    <i class="fas fa-expand"></i>
                </div>
            </div>
            
            <div class="optimization-result">
                <div class="result-item">
                    <div class="result-title">背压</div>
                    <div class="result-value">13.2 kPa</div>
                    <div class="result-comparison">
                        <div class="comparison-item">
                            <div class="comparison-label">当前</div>
                            <div class="comparison-value current-value">13.2 kPa</div>
                        </div>
                        <div class="comparison-item">
                            <div class="comparison-label">最优</div>
                            <div class="comparison-value optimal-value">12.0 kPa</div>
                        </div>
                    </div>
                </div>
                
                <div class="result-item">
                    <div class="result-title">风机转速</div>
                    <div class="result-value">42.3 Hz</div>
                    <div class="result-comparison">
                        <div class="comparison-item">
                            <div class="comparison-label">当前</div>
                            <div class="comparison-value current-value">42.3 Hz</div>
                        </div>
                        <div class="comparison-item">
                            <div class="comparison-label">最优</div>
                            <div class="comparison-value optimal-value">45.8 Hz</div>
                        </div>
                    </div>
                </div>
                
                <div class="result-item">
                    <div class="result-title">净功率</div>
                    <div class="result-value">550.3 MW</div>
                    <div class="result-comparison">
                        <div class="comparison-item">
                            <div class="comparison-label">当前</div>
                            <div class="comparison-value current-value">550.3 MW</div>
                        </div>
                        <div class="comparison-item">
                            <div class="comparison-label">最优</div>
                            <div class="comparison-value optimal-value">558.7 MW</div>
                        </div>
                    </div>
                </div>
                
                <div class="result-item">
                    <div class="result-title">经济效益</div>
                    <div class="result-value">+8.4 MW</div>
                    <div class="result-comparison">
                        <div class="comparison-item">
                            <div class="comparison-label">节煤量</div>
                            <div class="comparison-value optimal-value">215 kg/h</div>
                        </div>
                        <div class="comparison-item">
                            <div class="comparison-label">节约成本</div>
                            <div class="comparison-value optimal-value">1,720 元/小时</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 风机运行方式 -->
        <div class="card">
            <div class="card-header">
                <h2 class="card-title">
                    <i class="fas fa-fan"></i> 风机运行方式
                </h2>
                <div class="card-action">
                    <i class="fas fa-expand"></i>
                </div>
            </div>
            
            <div class="fan-operation">
                <div>
                    <div class="operation-header">
                        <i class="fas fa-fan"></i>
                        <h3 class="operation-title">实际运行方式</h3>
                    </div>
                    
                    <div class="fans-container">
                        <div class="fan-item">
                            <div class="fan-circle fan-normal">1</div>
                            <div class="fan-label">#1风机</div>
                            <div class="fan-speed">45.2 Hz</div>
                        </div>
                        <div class="fan-item">
                            <div class="fan-circle fan-normal">2</div>
                            <div class="fan-label">#2风机</div>
                            <div class="fan-speed">43.8 Hz</div>
                        </div>
                        <div class="fan-item">
                            <div class="fan-circle fan-abnormal">3</div>
                            <div class="fan-label">#3风机</div>
                            <div class="fan-speed">40.5 Hz</div>
                        </div>
                        <div class="fan-item">
                            <div class="fan-circle fan-normal">4</div>
                            <div class="fan-label">#4风机</div>
                            <div class="fan-speed">44.2 Hz</div>
                        </div>
                        <div class="fan-item">
                            <div class="fan-circle fan-abnormal">5</div>
                            <div class="fan-label">#5风机</div>
                            <div class="fan-speed">38.2 Hz</div>
                        </div>
                        <div class="fan-item">
                            <div class="fan-circle fan-normal">6</div>
                            <div class="fan-label">#6风机</div>
                            <div class="fan-speed">42.8 Hz</div>
                        </div>
                        <div class="fan-item">
                            <div class="fan-circle fan-abnormal">7</div>
                            <div class="fan-label">#7风机</div>
                            <div class="fan-speed">0 Hz</div>
                        </div>
                        <div class="fan-item">
                            <div class="fan-circle fan-abnormal">8</div>
                            <div class="fan-label">#8风机</div>
                            <div class="fan-speed">0 Hz</div>
                        </div>
                    </div>
                </div>
                
                <div>
                    <div class="operation-header">
                        <i class="fas fa-lightbulb"></i>
                        <h3 class="operation-title">推荐运行方式</h3>
                    </div>
                    
                    <div class="fans-container">
                        <div class="fan-item">
                            <div class="fan-circle fan-normal">1</div>
                            <div class="fan-label">#1风机</div>
                            <div class="fan-speed">46.5 Hz</div>
                        </div>
                        <div class="fan-item">
                            <div class="fan-circle fan-normal">2</div>
                            <div class="fan-label">#2风机</div>
                            <div class="fan-speed">45.2 Hz</div>
                        </div>
                        <div class="fan-item">
                            <div class="fan-circle fan-normal">3</div>
                            <div class="fan-label">#3风机</div>
                            <div class="fan-speed">45.8 Hz</div>
                        </div>
                        <div class="fan-item">
                            <div class="fan-circle fan-normal">4</div>
                            <div class="fan-label">#4风机</div>
                            <div class="fan-speed">46.0 Hz</div>
                        </div>
                        <div class="fan-item">
                            <div class="fan-circle fan-normal">5</div>
                            <div class="fan-label">#5风机</div>
                            <div class="fan-speed">45.5 Hz</div>
                        </div>
                        <div class="fan-item">
                            <div class="fan-circle fan-normal">6</div>
                            <div class="fan-label">#6风机</div>
                            <div class="fan-speed">45.0 Hz</div>
                        </div>
                        <div class="fan-item">
                            <div class="fan-circle fan-normal">7</div>
                            <div class="fan-label">#7风机</div>
                            <div class="fan-speed">44.8 Hz</div>
                        </div>
                        <div class="fan-item">
                            <div class="fan-circle fan-normal">8</div>
                            <div class="fan-label">#8风机</div>
                            <div class="fan-speed">0 Hz</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 参数表格 -->
        <div class="card">
            <div class="card-header">
                <h2 class="card-title">
                    <i class="fas fa-table"></i> 运行参数对比
                </h2>
                <div class="card-action">
                    <i class="fas fa-expand"></i>
                </div>
            </div>
            
            <table class="parameter-table">
                <thead>
                    <tr>
                        <th>参数</th>
                        <th>风机开启台数</th>
                        <th>风机转速</th>
                        <th>风机总功耗</th>
                        <th>背压</th>
                        <th>发电功率</th>
                        <th>净功率</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>当前值</td>
                        <td>6台</td>
                        <td>42.3 Hz</td>
                        <td>85.7 MW</td>
                        <td>13.2 kPa</td>
                        <td>635.0 MW</td>
                        <td>550.3 MW</td>
                    </tr>
                    <tr>
                        <td>最优值</td>
                        <td>7台</td>
                        <td>45.8 Hz</td>
                        <td>92.5 MW</td>
                        <td>12.0 kPa</td>
                        <td>635.0 MW</td>
                        <td>558.7 MW</td>
                    </tr>
                    <tr>
                        <td>差值</td>
                        <td>+1台</td>
                        <td>+3.5 Hz</td>
                        <td>+6.8 MW</td>
                        <td>-1.2 kPa</td>
                        <td>0 MW</td>
                        <td>+8.4 MW</td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    
    <script>
        // 页面加载完成后执行
        document.addEventListener('DOMContentLoaded', function() {
            // 模拟实时数据更新
            function updateMetrics() {
                const metrics = document.querySelectorAll('.metric-value');
                
                metrics.forEach(metric => {
                    const currentValue = parseFloat(metric.textContent);
                    const randomChange = (Math.random() - 0.5) * 0.5;
                    const newValue = currentValue + randomChange;
                    
                    // 更新数值
                    metric.textContent = newValue.toFixed(metric.classList.contains('power') ? 0 : 1);
                });
            }
            
            // 每5秒更新一次指标
            setInterval(updateMetrics, 5000);
        });
    </script>
</body>
</html>
